//---------------------------------------------------------------------
// This file is part of the Microsoft BizTalk Server 2006 SDK
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft BizTalk
// Server 2006 release and/or on-line documentation. See these other
// materials for detailed information regarding Microsoft code samples.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//---------------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Diagnostics;

namespace MsPartners.Unisys.BizTalkAdapters.AdapterWizard
{
	public class WzPageSummary : Microsoft.BizTalk.Wizard.WizardCompletionPage, IWizardControlInterface
	{
		private System.ComponentModel.IContainer components = null;
		private string _Summary = null;

		public WzPageSummary()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitializeComponent call
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		public bool NextButtonEnabled
		{
			get {	return true;	}
		}

		public bool NeedSummary
		{
			get {	return true;	}
		}

		public string Summary
		{
			get {	return _Summary;	}
			set 
			{
				_Summary = value;
				textBoxSubTitle.Text = Summary;
			}

		}
		#region Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(WzPageSummary));
			// 
			// labelTitle
			// 
			this.labelTitle.Name = "labelTitle";
			this.labelTitle.Text = resources.GetString("labelTitle.Text");
			// 
			// checkBoxRunAgain
			// 
			this.checkBoxRunAgain.Name = "checkBoxRunAgain";
			this.checkBoxRunAgain.Visible = ((bool)(resources.GetObject("checkBoxRunAgain.Visible")));
			// 
			// labelNavigation
			// 
			this.labelNavigation.Name = "labelNavigation";
			this.labelNavigation.Text = resources.GetString("labelNavigation.Text");
			// 
			// textBoxSubTitle
			// 
			this.textBoxSubTitle.Name = "textBoxSubTitle";
			this.textBoxSubTitle.Text = resources.GetString("textBoxSubTitle.Text");
			// 
			// WzPageSummary
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.Name = "WzPageSummary";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.Size = ((System.Drawing.Size)(resources.GetObject("$this.Size")));
			this.SubTitle = "The adapter wizard will create the following projects:";
			this.Title = "BizTalk Server Adapter Wizard";
			this.Load += new System.EventHandler(this.WzPageSummary_Load);
			this.VisibleChanged += new System.EventHandler(this.WzPageSummary_VisibleChanged);

		}
		#endregion

		private void WzPageSummary_Load(object sender, System.EventArgs e)
		{
		}

		private void WzPageSummary_VisibleChanged(object sender, System.EventArgs e)
		{
		}
	}
}

